<?php


namespace App\Web\Provider;


use EchoPHP\Facades\Request;
use EchoPHP\Foundation\ServiceProvider;

class UserAuthProvider extends ServiceProvider {
    public function register() {
        $this->app->singleton('userauth', function () {
            return new \App\Web\Service\UserAuth(Request::instance());
        });
    }

    public function provides() {
        return ['userauth'];
    }
}